<%@page import="java.net.URLEncoder"%>
<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%
String success = (String) request.getAttribute("success");
String error = (String) request.getAttribute("error");
%>

<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="" />
	<jsp:param name="description" value="" />
	<jsp:param name="keywords" value="" />
	<jsp:param name="page" value="home" />
</jsp:include>

<div id="userform" class="clearafter">
	<h1>Edit profile</h1><hr/>
	<div class="signupform">
		<%=success!=null?"<p style='color:blue'>"+success+"</p>":"" %>
		<%=error!=null?"<p style='color:red'>"+error+"</p>":"" %>
		<form method="post" action="/edit-profile" name="signupform">
			<p>
				<label> Username <br /> <input class="input" type="text"
					name="username" disabled="disabled" value=""/> </label>
			</p>
			<p>
				<label>Old Password <br /> <input class="input"
					type="password" name="oldpassword"/> </label>
			</p>
			<p>
				<label>New Password <br /> <input class="input"
					type="password" name="newpassword" /> </label>
			</p>
			<p>
				<label>Confirm New Password <br /> <input class="input"
					type="password" name="renewpassword" /> </label>
			</p>
			<p>
				Wordpress <input class="input type" type="radio"
					name="type"  style="width: auto;"  value="wordpress" />&nbsp;&nbsp;&nbsp;&nbsp;
				Blogger <input class="input type" type="radio"
					name="type"  style="width: auto;" value="blogger" />
			</p>
			<div id='load-field'>
				
			</div>
			<p>
				<input type="submit" value="Update" />
			</p>
		</form>
	</div>
	<div id='wordpress' style="display: none;">
		<p>
			<label> Domain <br /> <input class="input" type="text"
				name="domain" value=""/> </label>
		</p>
		<p>
			<label> Username Post Domain <br /> <input class="input"
				type="text" name="usernamepostdomain" value=""/> </label>
		</p>
		<p>
			<label> Password Post Domain <br /> <input class="input"
				type="password" name="passwordpostdomain" value=""/> </label>
		</p>
	</div>
	<div id='blogger' style="display: none;">
		<p>
			<label> Blog id <br /> <input class="input"
				type="text" name="blogid" value=""/> </label>
		</p>
		<p>
			<label> Email <br /> <input class="input"
				type="text" name="email" value=""/> </label>
		</p>
		<p>
			<label> Password <br /> <input class="input"
				type="password" name="passwordemail" value=""/> </label>
		</p>
	</div>
	<div class="howdy">
		Howdy : <b>asadffasd</b> <br />
		Type : <b>sgsfgfsdg</b> <br />
		<a href="/add-link">Get Auto Content</a> <br/>
		<a href="/get-content">Get Special Content</a> <br /> 
		<a href="/edit-profile">Edit profile</a> <br />
		<a href="/logout">Logout</a> <br /> 
		<br/>
		<strong>List link</strong>
		<div class="listlink">
			<ul>
				<li> - <a href="/view?link=%>">afdasfdsfd</a></li>
			</ul>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$("#load-field").html($("#wordpress").html());
		$("#load-field").html($("#blogger").html());
	
		$(".type").click(function(){
			if($(this).val()=="wordpress")
			{
				$("#load-field").html($("#wordpress").html());		
			}
			if($(this).val()=="blogger")
			{
				$("#load-field").html($("#blogger").html());		
			}
		});
	});
</script>
<%@ include file='/layouts/footer.jsp'%>